package com.herohead;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Timings {

	// this is still not working.

	public long timeCheck(String startTime, String endTime) throws ParseException {
		SimpleDateFormat format = new SimpleDateFormat("HH:mm:ss");
		Date date1 = format.parse(startTime);
		Date date2 = format.parse(endTime);
		long difference = date2.getTime() - date1.getTime();
		return (difference /100/60);
	}

}
